Package-level declarations

Types

Link copied to clipboard

Enum class representing different sizes for a button. Each size has an associated height in dp.

Link copied to clipboard

Variants of the Carbon Button.

Functions

Link copied to clipboard
fun Button(label: String, onClick: () -> Unit, modifier: Modifier = Modifier, iconPainter: Painter? = null, isEnabled: Boolean = true, buttonType: ButtonType = ButtonType.Primary, buttonSize: ButtonSize = ButtonSize.LargeProductive, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() })

Buttons are used to initialize an action. Button labels express what action will occur when the user interacts with it.

Link copied to clipboard
fun IconButton(iconPainter: Painter, onClick: () -> Unit, modifier: Modifier = Modifier, buttonType: ButtonType = ButtonType.Primary, isEnabled: Boolean = true, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() })

Buttons are used to initialize an action. Button labels express what action will occur when the user interacts with it.